<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-comment">-- | A small prelude used in @zinza@ generated</span><span>
</span><span id="line-2"></span><span class="hs-comment">-- template modules.</span><span>
</span><span id="line-3"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Distribution.ZinzaPrelude</span><span> </span><span class="hs-special">(</span><span>
</span><span id="line-4"></span><span>    </span><span class="annot"><a href="Distribution.ZinzaPrelude.html#Writer"><span class="hs-identifier">Writer</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-5"></span><span>    </span><span class="annot"><a href="Distribution.ZinzaPrelude.html#execWriter"><span class="hs-identifier">execWriter</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-6"></span><span>    </span><span class="annot"><a href="Distribution.ZinzaPrelude.html#tell"><span class="hs-identifier">tell</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-7"></span><span>    </span><span class="annot"><span class="hs-comment">-- * Re-exports</span></span><span>
</span><span id="line-8"></span><span>    </span><span class="annot"><a href="../../base/src/Data.Foldable.html#forM_"><span class="hs-identifier">forM_</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-9"></span><span>    </span><span class="annot"><a href="../../base/src/GHC.Generics.html#Generic"><span class="hs-identifier">Generic</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-10"></span><span>    </span><span class="annot"><a href="Distribution.Types.PackageName.html#PackageName"><span class="hs-identifier">PackageName</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-11"></span><span>    </span><span class="annot"><a href="Distribution.Types.Version.html#Version"><span class="hs-identifier">Version</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-12"></span><span>    </span><span class="annot"><a href="Distribution.Pretty.html#prettyShow"><span class="hs-identifier">prettyShow</span></a></span><span>
</span><span id="line-13"></span><span>    </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-14"></span><span>
</span><span id="line-15"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Compat.Prelude.html"><span class="hs-identifier">Distribution.Compat.Prelude</span></a></span><span>
</span><span id="line-16"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Prelude.html#"><span class="hs-identifier">Prelude</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-17"></span><span>
</span><span id="line-18"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Control.Monad.html#"><span class="hs-identifier">Control.Monad</span></a></span><span>                  </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Foldable.html#forM_"><span class="hs-identifier">forM_</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-19"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Pretty.html"><span class="hs-identifier">Distribution.Pretty</span></a></span><span>            </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Pretty.html#prettyShow"><span class="hs-identifier">prettyShow</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-20"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Types.PackageName.html"><span class="hs-identifier">Distribution.Types.PackageName</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Types.PackageName.html#PackageName"><span class="hs-identifier">PackageName</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-21"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Types.Version.html"><span class="hs-identifier">Distribution.Types.Version</span></a></span><span>     </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Types.Version.html#Version"><span class="hs-identifier">Version</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-22"></span><span>
</span><span id="line-23"></span><span class="hs-keyword">newtype</span><span> </span><span id="Writer"><span class="annot"><a href="Distribution.ZinzaPrelude.html#Writer"><span class="hs-identifier hs-var">Writer</span></a></span></span><span> </span><span id="local-6989586621679663130"><span class="annot"><a href="#local-6989586621679663130"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="W"><span class="annot"><a href="Distribution.ZinzaPrelude.html#W"><span class="hs-identifier hs-var">W</span></a></span></span><span> </span><span class="hs-special">{</span><span> </span><span id="unW"><span class="annot"><span class="annottext">forall a. Writer a -&gt; ShowS -&gt; (ShowS, a)
</span><a href="Distribution.ZinzaPrelude.html#unW"><span class="hs-identifier hs-var hs-var">unW</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Show.html#ShowS"><span class="hs-identifier hs-type">ShowS</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Show.html#ShowS"><span class="hs-identifier hs-type">ShowS</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="#local-6989586621679663130"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">}</span><span>
</span><span id="line-24"></span><span>
</span><span id="line-25"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679663062"><span class="annot"><a href="../../base/src/GHC.Base.html#Functor"><span class="hs-identifier hs-type">Functor</span></a></span><span> </span><span class="annot"><a href="Distribution.ZinzaPrelude.html#Writer"><span class="hs-identifier hs-type">Writer</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-26"></span><span>    </span><span id="local-6989586621679663059"><span class="annot"><span class="annottext">fmap :: forall a b. (a -&gt; b) -&gt; Writer a -&gt; Writer b
</span><a href="../../base/src/GHC.Base.html#fmap"><span class="hs-identifier hs-var hs-var hs-var hs-var">fmap</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(a -&gt; b) -&gt; Writer a -&gt; Writer b
forall (m :: * -&gt; *) a1 r. Monad m =&gt; (a1 -&gt; r) -&gt; m a1 -&gt; m r
</span><a href="../../base/src/GHC.Base.html#liftM"><span class="hs-identifier hs-var">liftM</span></a></span><span>
</span><span id="line-27"></span><span>
</span><span id="line-28"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679663048"><span id="local-6989586621679663050"><span id="local-6989586621679663052"><span class="annot"><a href="../../base/src/GHC.Base.html#Applicative"><span class="hs-identifier hs-type">Applicative</span></a></span><span> </span><span class="annot"><a href="Distribution.ZinzaPrelude.html#Writer"><span class="hs-identifier hs-type">Writer</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-29"></span><span>    </span><span id="local-6989586621679663046"><span class="annot"><span class="annottext">pure :: forall a. a -&gt; Writer a
</span><a href="../../base/src/GHC.Base.html#pure"><span class="hs-identifier hs-var hs-var hs-var hs-var">pure</span></a></span></span><span> </span><span id="local-6989586621679663045"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679663045"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(ShowS -&gt; (ShowS, a)) -&gt; Writer a
forall a. (ShowS -&gt; (ShowS, a)) -&gt; Writer a
</span><a href="Distribution.ZinzaPrelude.html#W"><span class="hs-identifier hs-var">W</span></a></span><span> </span><span class="annot"><span class="annottext">((ShowS -&gt; (ShowS, a)) -&gt; Writer a)
-&gt; (ShowS -&gt; (ShowS, a)) -&gt; Writer a
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span id="local-6989586621679663044"><span class="annot"><span class="annottext">ShowS
</span><a href="#local-6989586621679663044"><span class="hs-identifier hs-var">ss</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ShowS
</span><a href="#local-6989586621679663044"><span class="hs-identifier hs-var">ss</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679663045"><span class="hs-identifier hs-var">x</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-30"></span><span>    </span><span id="local-6989586621679663042"><span class="annot"><span class="annottext">&lt;*&gt; :: forall a b. Writer (a -&gt; b) -&gt; Writer a -&gt; Writer b
</span><a href="../../base/src/GHC.Base.html#%3C%2A%3E"><span class="hs-operator hs-var hs-var hs-var hs-var">(&lt;*&gt;)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Writer (a -&gt; b) -&gt; Writer a -&gt; Writer b
forall (m :: * -&gt; *) a b. Monad m =&gt; m (a -&gt; b) -&gt; m a -&gt; m b
</span><a href="../../base/src/GHC.Base.html#ap"><span class="hs-identifier hs-var">ap</span></a></span><span>
</span><span id="line-31"></span><span>
</span><span id="line-32"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679663036"><span class="annot"><a href="../../base/src/GHC.Base.html#Monad"><span class="hs-identifier hs-type">Monad</span></a></span><span> </span><span class="annot"><a href="Distribution.ZinzaPrelude.html#Writer"><span class="hs-identifier hs-type">Writer</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-33"></span><span>    </span><span id="local-6989586621679663032"><span class="annot"><span class="annottext">return :: forall a. a -&gt; Writer a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var hs-var hs-var hs-var">return</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">a -&gt; Writer a
forall (f :: * -&gt; *) a. Applicative f =&gt; a -&gt; f a
</span><a href="../../base/src/GHC.Base.html#pure"><span class="hs-identifier hs-var">pure</span></a></span><span>
</span><span id="line-34"></span><span>    </span><span id="local-6989586621679663031"><span class="annot"><span class="annottext">Writer a
</span><a href="#local-6989586621679663031"><span class="hs-identifier hs-var">m</span></a></span></span><span> </span><span id="local-6989586621679663030"><span class="annot"><span class="annottext">&gt;&gt;= :: forall a b. Writer a -&gt; (a -&gt; Writer b) -&gt; Writer b
</span><a href="../../base/src/GHC.Base.html#%3E%3E%3D"><span class="hs-operator hs-var hs-var hs-var hs-var">&gt;&gt;=</span></a></span></span><span> </span><span id="local-6989586621679663029"><span class="annot"><span class="annottext">a -&gt; Writer b
</span><a href="#local-6989586621679663029"><span class="hs-identifier hs-var">k</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(ShowS -&gt; (ShowS, b)) -&gt; Writer b
forall a. (ShowS -&gt; (ShowS, a)) -&gt; Writer a
</span><a href="Distribution.ZinzaPrelude.html#W"><span class="hs-identifier hs-var">W</span></a></span><span> </span><span class="annot"><span class="annottext">((ShowS -&gt; (ShowS, b)) -&gt; Writer b)
-&gt; (ShowS -&gt; (ShowS, b)) -&gt; Writer b
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span id="local-6989586621679663028"><span class="annot"><span class="annottext">ShowS
</span><a href="#local-6989586621679663028"><span class="hs-identifier hs-var">s1</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-35"></span><span>        </span><span class="hs-keyword">let</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679663027"><span class="annot"><span class="annottext">ShowS
</span><a href="#local-6989586621679663027"><span class="hs-identifier hs-var">s2</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679663026"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679663026"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Writer a -&gt; ShowS -&gt; (ShowS, a)
forall a. Writer a -&gt; ShowS -&gt; (ShowS, a)
</span><a href="Distribution.ZinzaPrelude.html#unW"><span class="hs-identifier hs-var hs-var">unW</span></a></span><span> </span><span class="annot"><span class="annottext">Writer a
</span><a href="#local-6989586621679663031"><span class="hs-identifier hs-var">m</span></a></span><span> </span><span class="annot"><span class="annottext">ShowS
</span><a href="#local-6989586621679663028"><span class="hs-identifier hs-var">s1</span></a></span><span>
</span><span id="line-36"></span><span>        </span><span class="hs-keyword">in</span><span> </span><span class="annot"><span class="annottext">Writer b -&gt; ShowS -&gt; (ShowS, b)
forall a. Writer a -&gt; ShowS -&gt; (ShowS, a)
</span><a href="Distribution.ZinzaPrelude.html#unW"><span class="hs-identifier hs-var hs-var">unW</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">a -&gt; Writer b
</span><a href="#local-6989586621679663029"><span class="hs-identifier hs-var">k</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679663026"><span class="hs-identifier hs-var">x</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">ShowS
</span><a href="#local-6989586621679663027"><span class="hs-identifier hs-var">s2</span></a></span><span>
</span><span id="line-37"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">(</span><span class="hs-pragma">&gt;&gt;=</span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-38"></span><span>
</span><span id="line-39"></span><span id="local-6989586621679663088"><span class="annot"><a href="Distribution.ZinzaPrelude.html#execWriter"><span class="hs-identifier hs-type">execWriter</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.ZinzaPrelude.html#Writer"><span class="hs-identifier hs-type">Writer</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679663088"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span></span><span>
</span><span id="line-40"></span><span id="execWriter"><span class="annot"><span class="annottext">execWriter :: forall a. Writer a -&gt; String
</span><a href="Distribution.ZinzaPrelude.html#execWriter"><span class="hs-identifier hs-var hs-var">execWriter</span></a></span></span><span> </span><span id="local-6989586621679663025"><span class="annot"><span class="annottext">Writer a
</span><a href="#local-6989586621679663025"><span class="hs-identifier hs-var">w</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(ShowS, a) -&gt; ShowS
forall a b. (a, b) -&gt; a
</span><a href="../../base/src/Data.Tuple.html#fst"><span class="hs-identifier hs-var">fst</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Writer a -&gt; ShowS -&gt; (ShowS, a)
forall a. Writer a -&gt; ShowS -&gt; (ShowS, a)
</span><a href="Distribution.ZinzaPrelude.html#unW"><span class="hs-identifier hs-var hs-var">unW</span></a></span><span> </span><span class="annot"><span class="annottext">Writer a
</span><a href="#local-6989586621679663025"><span class="hs-identifier hs-var">w</span></a></span><span> </span><span class="annot"><span class="annottext">ShowS
forall a. a -&gt; a
</span><a href="../../base/src/GHC.Base.html#id"><span class="hs-identifier hs-var">id</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;&quot;</span></span><span>
</span><span id="line-41"></span><span>
</span><span id="line-42"></span><span class="annot"><a href="Distribution.ZinzaPrelude.html#tell"><span class="hs-identifier hs-type">tell</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Distribution.ZinzaPrelude.html#Writer"><span class="hs-identifier hs-type">Writer</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-43"></span><span id="tell"><span class="annot"><span class="annottext">tell :: String -&gt; Writer ()
</span><a href="Distribution.ZinzaPrelude.html#tell"><span class="hs-identifier hs-var hs-var">tell</span></a></span></span><span> </span><span id="local-6989586621679663023"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679663023"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(ShowS -&gt; (ShowS, ())) -&gt; Writer ()
forall a. (ShowS -&gt; (ShowS, a)) -&gt; Writer a
</span><a href="Distribution.ZinzaPrelude.html#W"><span class="hs-identifier hs-var">W</span></a></span><span> </span><span class="annot"><span class="annottext">((ShowS -&gt; (ShowS, ())) -&gt; Writer ())
-&gt; (ShowS -&gt; (ShowS, ())) -&gt; Writer ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span id="local-6989586621679663022"><span class="annot"><span class="annottext">ShowS
</span><a href="#local-6989586621679663022"><span class="hs-identifier hs-var">s'</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ShowS
</span><a href="#local-6989586621679663022"><span class="hs-identifier hs-var">s'</span></a></span><span> </span><span class="annot"><span class="annottext">ShowS -&gt; ShowS -&gt; ShowS
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#showString"><span class="hs-identifier hs-var">showString</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679663023"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">,</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-44"></span></pre></body></html>